package com.jsg.sl651.annotations;

import org.springframework.core.annotation.AliasFor;
import org.springframework.stereotype.Component;

import java.lang.annotation.*;

@Target(ElementType.TYPE) // 该注解只能用于接口
@Retention(RetentionPolicy.RUNTIME) // 注解在运行时保留
@Component // 组合 @Component 注解
public @interface FunctionHandler {
    // 功能码
    int functionCode();
    @AliasFor(annotation = Component.class, attribute = "value")
    String componentValue() default "";
}
